<%@ page language="java"  pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息管理</title>
<%@include file="../common/jscss.jsp" %>
</head>

<body>
	<!-- head -->
	<%@include file="../common/header.jsp" %>
    <!-- head--end -->
   <div class="content">
    	<div class="body_wrap clearfix">
            <div class="com_left">
            	<div class="com_pd_s1">
                	<div class="box_s2 box_tabs_s4">
                		<div class="title">
                        	<a href="news!publish.do" class="def_btn_s1 btn">新建</a>
                            <div class="title_name">
                        		<img src="images/other/icon_17.jpg" /><span>信息管理</span>
                           	</div>
                            <ul class="tabs_nav">
                            	<li class="current"><a href="javascript:void(0);">全部</a></li>
                                <li ><a href="javascript:void(0);">政策</a></li>
                                <li ><a href="javascript:void(0);">信息</a></li>
                            </ul>
                        </div>
                    	
                        <div class="form_list">
                            <ul class="form_data tabs">
                            
                            	<s:iterator id="all" value="newsAll.list" status="status">
                            		<li <s:if test="type == 1">class='zc'</s:if><s:if test="type == 2">class='xx'</s:if>>
	                                    <p class="info " style="position: relative;">
	                                    <a href="news!read.do?id=<s:property value="id"/>" title="<s:property value="title"/>"><s:property value="title"/></a>
	                                    <s:if test="isNew">
	                                    <i class="new" style="right: 0px;"></i>
	                                    </s:if>
	                                    </p>
	                                    <p class="date"><s:date name="modifyDate" format="yyyy-MM-dd" /></p>
	                                    <div class="data_ope">
	                                        <a href="news!edit.do?id=<s:property value="id"/>">修改</a><a href="javascript:;" onclick="deleteNews('<s:property value="id"/>')">删除</a>
	                                    </div>
	                                </li>
                            		
                               		
                               	</s:iterator>
                            	
                             </ul>
                            
                           
                            
						</div>
                    </div>
                    
                    <div id="fy_container"></div>
                    
                </div>
            </div>
            
            <!-- right -->
            <%@include file="right.jsp" %>
            <!--right--end-->
            <br class="clear">
        </div>
    </div>
    <!-- body -->
    <script type="text/javascript">
    	$(function(){
	    	$.defUnit.pager({
					curPage:<s:property value="newsAll.currentPage"/>,
					totalPage:<s:property value="newsAll.totalPage"/>,
					customStyle:"customStyle",
					containerID:"fy_container",
					afterClickPage:function(page){
						window.location.href="news!manage.do?page="+page;
					}		
				}
			)
	    })
    
    	function deleteNews(id){
    		if(confirm("你确定要删除该信息吗？")){
    			window.location.href="news!delete.do?id="+id;
    		}
    	}
    </script>
</body>
</html>
